﻿Module UI2
    Public Sub FormatDataGrid(ByRef dgv As DataGridView)
        dgv.AllowUserToAddRows = False
        dgv.AllowUserToDeleteRows = False
        dgv.ReadOnly = True
        dgv.RowHeadersVisible = False
        dgv.AllowUserToResizeRows = False
        'dgv.AlternatingRowsDefaultCellStyle.BackColor = My.Settings.DataGridViewAlternativeColor
        dgv.CellBorderStyle = DataGridViewCellBorderStyle.None
        dgv.BackgroundColor = Color.WhiteSmoke
        dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect
        'dgv.DefaultCellStyle.Font = My.Settings.DataGridViweFont
        dgv.RowTemplate.Height = 30 'My.Settings.DataGridViweRowHeight
        dgv.MultiSelect = False
    End Sub
End Module
